<?php 
	if (!is_null($this->offers)) {
		?>
		<div id="_news_list_content" style="right: 10px;">
			<div class="_news_block">
				<div class="_news_title">
					<?=$this->offers['Title'];?>
				</div>
				<div class="_news_date">
					<?=date("d.m.y", strtotime($this->offers['date'])); ?>
				</div>
				<div class="_news_description">
					<?=$this->offers['Content']?>
				</div>
			</div>
		</div>
		
		<?php if(sizeOf($this->object)>0): ?>
			<div class="Specila_object_title"><?=$this->translate('Обьекты, которые относяться к даной акции'); ?></div>
			<?php foreach($this->object as $v): ?>		
			
			
			<div class="c_one_item_" style="left: 5px;">
				<div class="c_one_item_img">
					<?php if (isset($v['ParentID']) && intval($v['ParentID']) > 0) { ?>
						<img src="<?=Obj_Image::thumbnail(array('ParentID' => $v['ParentID'], 'SourceName' => $v['SourceName']), 98, 98)?>" alt="" />
						<img src="<?=HTTP_HOST?>/images/aurora/country_template/empty.gif" />
					<?php } ?>
				</div>	
				<div class="c_one_item_name"><a href="<?=Obj_Object::getObjectLink($v)?>"><?=$v['Name']?></a></div>

				<div class="c_one_item_pa">
					<div class="c_one_item_price">
						<?php 
						switch ($v['Attribute']) { 
							case OBJECT_SALE: echo $this->translate('Продажа'); break;
							case OBJECT_RENT: echo $this->translate('Аренда'); break;
							case OBJECT_INVESTMENT_PROJECT: echo $this->translate('Инвестпроект'); break;
						}
						?>
					</div>
					<div class="c_one_item_price">
						<?=$this->translate('Цена')?> - <?=number_format($v['Price'], 0, '.', ' ')?> <?=$v['СurrencyHTML']?>
					</div>
				</div>
				<div class="c_one_item_area"><?=$this->translate('Площадь')?> - <?=$v['Area']?> <?=$this->translate('м.кв.')?></div>
				
				<div class="c_one_item_road"><a href="<?=HTTP_HOST?>/<?=$v['CountryAlias']?>"><?=$v['CountryName']?></a> | <a href="<?=HTTP_HOST?>/<?=$v['CountryAlias']?>/<?=$v['RegionAlias']?>"><?=$v['RegionName']?></a> | <a href="<?=HTTP_HOST?>/<?=$v['CountryAlias']?>/<?=$v['RegionAlias']?>/<?=$v['CityAlias']?>"><?=$v['CityName']?></a></div>
				<div class="c_one_item_description"><?=$v['ShortDescription']?></div>
				<div class="c_one_item_separator"></div>
			</div>
			<?php endforeach;?>
		<?php endif; ?>
<?php 
	} else {
?>
			<div id="_news_list_content">
			<?php
				foreach ($this->offersList as $v) {
					?>
				<div class="_news_block">
					<div class="_news_title">
						<a href="<?=$this->url(array('controller' => 'special-offers', 'action' => 'index', 'id' => $v['ID']))?>">	
							<?=$v['Title'];?>
						</a>
					</div>
					<div class="_news_date">
						<?=date("d.m.y", strtotime($v['date'])); ?>
					</div>
					<div class="_news_description">
						<?=Obj_Text::intro(strip_tags($v['Content']), 800);?>
					</div>
					<div class="_news_see_more"><a href="<?=$this->url(array('controller' => 'special-offers', 'action' => 'index', 'id' => $v['ID']))?>"><?=$this->translate('Далее')?> &gt;</a></div>
				</div>
					<?php 
				} 
			?>
			</div>
	<?php 		
	echo $this->paginationControl($this->offersList, 'Sliding', 'pagination.phtml');
	?>
<?php }?>